package com.damage.common.service.impl;

import com.damage.common.entity.Employee;
import com.damage.common.entity.Supplier;
import com.damage.common.mapper.ICommonMapper;
import com.damage.common.service.ICommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommonServiceImpl implements ICommonService {

    @Autowired
    ICommonMapper mapper;

    @Override
    public Employee employeeLogin(String username, String password) {
        return mapper.employeeLogin(username,password);
    }

    @Override
    public Supplier supplierLogin(String username, String password) {
        return mapper.supplierLogin(username,password);
    }
}
